package handlers;

import map.GameWorld;
import entity.Entity;
import entity.WorldNPC;

public class PetMvtHandler extends MvtHandler {

	public PetMvtHandler(Entity toMove) {
		super(toMove);
	}

	@Override
	public void doInteract(Entity enemy) {
		WorldNPC npc = (WorldNPC) enemy;
		if(!enemy.getPosition().equals(GameWorld.getInstance().getAvatar().getPosition())) {
			npc.getInteractionOptions().execute(0);
		}
	}

}
